package cn.edu.ujn.ch10.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.ujn.ch10.dao.Customer;
import cn.edu.ujn.ch10.dao.CustomerMapper;

@Service
public class CustomerServiceImpl implements ICustomerService{
	@Autowired
	private CustomerMapper customerMapper;
	@Override
	public Customer getCustomerByID(int id) {
		// TODO 自动生成的方法存根
		Customer customer = customerMapper.selectByPrimaryKey(id);
		return customer;
	}

	@Override
	public Customer addCustomer(Customer customer) {
		// TODO 自动生成的方法存根
		return null;
	}

}
